<div class="form-item">
    <span class="item_name" style="margin-left: -48px">快递公司：</span>
    <select style="margin-left: 15px" class="selection_1 textbox_296" name="type">
        <option value="1">顺丰</option>
        <option value="2">深通</option>
        <option value="3">圆通</option>
        <option value="4">韵达</option>
        <option value="5">大丰</option>
        <option value="6">诚信</option>
    </select>
</div>
<div class="form-item">
    <span class="item_name" style="margin-left: -48px">快递单号：</span>
<<<<<<< HEAD
    <input class="textbox_296" placeholder="快递单号..." type="text" style="margin-left: 15px" name="express_code" id="express_code" />
=======
    <input class="textbox_296" placeholder="快递单号..." type="text" style="margin-left: 15px" name="express_code" />
    <input type="hidden" name="oid" value="0">

</div>
<script>
    $(function(){
        $('.modal .modal-submit').click(function(){
            var _type = $('select[name="type"]').val(),
                    _express_code = $('input[name="express_code"]'),
                    oid = $('input[name="oid"]').val();
            if( !_type )    return  false;
            if( !_express_code.val() ){
                _express_code.focus();
                return false;
            }
            $.post(
                    '',
                    {
                        oid: oid,
                        type: _type,
                        express_code: _express_code.val()
                    },
                    function(responed){
                        close_modal();
                    },
                    'json'
            );
        });
    });
</script>
